package cn.stazxr.mapper;

import cn.stazxr.domain.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleMapper {
    List<Role> findAll();

    void save(Role role);

    List<Role> findRoleByUserId(Integer id);

    List<Role> serch(String rolename);

    void del(Integer roleId);
}
